package com.alameda.mapper.user;

import com.alameda.pojo.user.AdUserDO;
import com.alameda.user.vo.AdUserVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 用户 数据控制层
 *
 * @author Lv
 * @date 2024/06/02
 */
@Mapper
public interface AdUserMapper extends BaseMapper<AdUserDO> {
    /**
     * 查询用户信息
     *
     * @param iPage          分页对象
     * @param likeNickname   昵称
     * @param likeEmail      邮箱
     * @param organizationId 组织id
     * @return
     */
    IPage<AdUserVO> listUserData(@Param("iPage") IPage<AdUserDO> iPage,
                                 @Param("likeNickname") String likeNickname,
                                 @Param("likeEmail") String likeEmail,
                                 @Param("organizationId") Long organizationId);
}
